using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN ThanhPhanEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: ThanhPhanEntity</para>
	/// <para>Description: ClassThanhPhanEntity store data of table ThanhPhan</para>
	///</summary>

	[DataContract]
	public partial class ThanhPhanEntity{


		private bool _InternalChangedIsNullThanhPhan_ID=true;
		private bool _IsNullThanhPhan_ID=true;
		private bool _InternalChangedIsNullTenThanhPhan=true;
		private bool _IsNullTenThanhPhan=true;
		private bool _InternalChangedIsNullGhiChu=true;
		private bool _IsNullGhiChu=true;
		private int _ThanhPhan_ID;
		private string _TenThanhPhan;
		private string _GhiChu;
		[DataMember]
		public bool IsNullThanhPhan_ID{
			get{return _IsNullThanhPhan_ID;}
			set{if(!_InternalChangedIsNullThanhPhan_ID)_IsNullThanhPhan_ID=value;}
		}
		[DataMember]
		public bool IsNullTenThanhPhan{
			get{return _IsNullTenThanhPhan;}
			set{if(!_InternalChangedIsNullTenThanhPhan)_IsNullTenThanhPhan=value;}
		}
		[DataMember]
		public bool IsNullGhiChu{
			get{return _IsNullGhiChu;}
			set{if(!_InternalChangedIsNullGhiChu)_IsNullGhiChu=value;}
		}
		[DataMember]
		public int ThanhPhan_ID{
			get{return _ThanhPhan_ID;}
			set{
				_ThanhPhan_ID=value;
				if(_ThanhPhan_ID!=null){
					_IsNullThanhPhan_ID=false;
					_InternalChangedIsNullThanhPhan_ID=true;
				}
			}
		}
		[DataMember]
		public string TenThanhPhan{
			get{return _TenThanhPhan;}
			set{
				_TenThanhPhan=value;
				if(_TenThanhPhan!=null){
					_IsNullTenThanhPhan=false;
					_InternalChangedIsNullTenThanhPhan=true;
				}
			}
		}
		[DataMember]
		public string GhiChu{
			get{return _GhiChu;}
			set{
				_GhiChu=value;
				if(_GhiChu!=null){
					_IsNullGhiChu=false;
					_InternalChangedIsNullGhiChu=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END ThanhPhanEntityBase*****************************************/
	/*****************************************************************************************************/
}

